Hi Jarek, Your scripts worked very fine (in posdata is another one) but there are some problems when the entries are similar. I remember thta use of pipe in grep shows similar disturbances. Do you think it is possible to review your script? Here you may see how the comma delimited list of words (.txt) is not finely read to cacht all of them. Thanks for your time, best regards, Camilo Pd: this is another script used : var mDoc = app.activeDocument, mCond = mDoc.conditions.item("mFound"), mPath = "~/Desktop/L1.txt", mDelimiter = ",", mSource = File(mPath), mOpen = mSource.open("r",undefined,undefined), len, len1, mWordsArr, mFound; if ( !mOpen) {alert ("Can't open a source file"); exit()}; mWordsArr = mSource.read().split(mDelimiter); len = mWordsArr.length; app.findTextPreferences = null; app.findChangeTextOptions.wholeWord = true; while (len-->0) { app.findTextPreferences.findWhat = mWordsArr[len]; mFound = mDoc.findText(); len1 = mFound.length; while (len1-->0) mFound[len1].appliedCharacterStyle = "ITAL1"; } app.findTextPreferences = null;
... View more